<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var s1=Symbol(1)
        var s2=Symbol(2)
        console.log(s1,s2,s1==s2);
        var obj={
            [s1]:1,
            [s2]:2
        }
        console.log(obj[s1]);
        
    </script>
</body>
</html>